var status = -1;

function action(c, b, a) {
    if (c == 1) {
        status++
    } else {
        status--
    }
    if (status == 0) {
        cm.gainItem(4001839, 270);
        cm.gainItem(5530826, -1);
        cm.dispose();
        cm.sendOk("恭喜您获得 #v4001839##t4001839##k  x 270 ")
    } else {
        cm.dispose()
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};